import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import entity from './utils/entity.js'
import config from './utils/config.js'
import uView from '@/uni_modules/uview-ui'
import store from "./store"
Vue.prototype.$store = store //全局挂载
Vue.use(uView)
//挂载配置文件
Vue.prototype.$c = config;
Vue.prototype.$e = entity; //后期用this.$e即可调用
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({ //其实这里面也可以全局配置
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
if (uni.getSystemInfoSync().platform !== "devtools") { //部署上线去console
	console.log = () => {}
}
